Completed
Push — master ( f9124f...ad496b )
by Dimas
09:47
created

local.fetch   A

Complexity

Conditions 1

Size

Total Lines 4
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
import * as upath from 'upath';
2
import { readFileSync } from 'fs';
3
import Config from './Config';
4
import core from './../compiler/core';
5
import filemanager from './../compiler/filemanager';
6
import log from './../compiler/log';
7
export default class local {
8
  localpath: string;
9
  constructor(private config: Config) {
10
    this.localpath = config.localPath;
11
  }
12
  fetch() {
13
    const path = this.localpath;
14
    var read = core.readdir(path, [], this.config.ignores);
15
    return read;
16
  }
17
}
18